import request from '@/utils/request'

// 查询项目里程碑列表
export function listMilepost(query) {
  return request({
    url: '/crm/milepost/list',
    method: 'get',
    params: query
  })
}

// 查询项目里程碑详细
export function getMilepost(id) {
  return request({
    url: '/crm/milepost/' + id,
    method: 'get'
  })
}

// 新增项目里程碑
export function addMilepost(data) {
  return request({
    url: '/crm/milepost',
    method: 'post',
    data: data
  })
}

// 修改项目里程碑
export function updateMilepost(data) {
  return request({
    url: '/crm/milepost',
    method: 'put',
    data: data
  })
}

// 删除项目里程碑
export function delMilepost(id) {
  return request({
    url: '/crm/milepost/' + id,
    method: 'delete'
  })
}
